package com.woniu.bank.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName rated
 */
@Data
@ApiModel(description = "评级授信所有信息")
public class Rated implements Serializable {
    @ApiModelProperty(value = "评级授信ID")
    private Integer ratedId;
    @ApiModelProperty(value = "授信协议号")
    private String ratedNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "起始日期")
    private Date ratedStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "截止日期")
    private Date ratedEndTime;
    @ApiModelProperty(value = "业务流水号(授信台账编号)")
    private String ratedOn;
    @ApiModelProperty(value = "进件渠道")
    private String ratedAddress;
    @ApiModelProperty(value = "信用等级")
    private String ratedCredit;
    @ApiModelProperty(value = "建议信用（授信）额度")
    private Double ratedCreditLimit;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "评定日期（授信批复日期）")
    private Date ratedRequestTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "评定（授信）到期日期")
    private Date ratedExpireTime;
    @ApiModelProperty(value = "授信期限")
    private String ratedTerm;
    @ApiModelProperty(value = "机评信用得分")
    private String ratedRobotScore;
    @ApiModelProperty(value = "机评授信额度")
    private Double ratedRobotLimit;
    @ApiModelProperty(value = "评定理由")
    private String ratedReason;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "登记日期")
    private Date ratedLoginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "评定（授信）生效日期")
    private Date ratedEffectiveTime;
    @ApiModelProperty(value = "评定方式")
    private String ratedManner;
    @ApiModelProperty(value = "客户id")
    private Integer clientId;
    @ApiModelProperty(value = "审批id")
    private String approvalStatusId;
    @ApiModelProperty(value = "备用1")
    private String bak1;
    @ApiModelProperty(value = "备用2")
    private String bak2;
    @ApiModelProperty(value = "备用3")
    private String bak3;
    @ApiModelProperty(value = "备用4")
    private String bak4;
    @ApiModelProperty(value = "备用5(调整前授信金额)")
    private String bak5;

    private static final long serialVersionUID = 1L;
}